package com.maoning.auth.feign;

import com.maoning.auth.vo.UserLoginVo;
import com.maoning.auth.vo.UserRegistVo;
import com.maoning.common.exception.BizCodeEnume;
import com.maoning.common.utils.R;
import com.maoning.common.vo.SocialUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName : MemberFeignService
 * @Author : Administrator
 * @Date: 2022/4/2 13:09
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo userRegistVo);

    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo userLoginVo);

    @PostMapping("member/member/oauth2/login")
    public R oauth2Login(@RequestBody SocialUser socialUser);
}
